import request from '@/router/axios'

export function checkItemFetchList(query) {
  return request({
    url: '/admin/checkItem/page',
    method: 'get',
    params: query
  })
}

export function checkItemFetchItem(query) {
  return request({
    url: '/admin/checkItem/list',
    method: 'get',
    params: query
  })
}

export function checkItemSaveInfo(obj){
  return request({
    url: '/admin/checkItem/saveInfo',
    method: 'post',
    data: obj
  })
}

export function checkItemAddObj(obj) {
  return request({
    url: '/admin/checkItem',
    method: 'post',
    data: obj
  })
}

export function checkItemGetObj(id) {
  return request({
    url: '/admin/checkItem/' + id,
    method: 'get'
  })
}

export function checkItemDelObj(id) {
  return request({
    url: '/admin/checkItem/' + id,
    method: 'delete'
  })
}

export function checkItemPutObj(obj) {
  return request({
    url: '/admin/checkItem',
    method: 'put',
    data: obj
  })
}


export function checkItemListByTemplate(id) {
  return request({
    url: '/admin/checkItem/listByTemplate/'+id,
    method: 'get'
  })
}

export function checkItemListByChkData(id) {
  return request({
    url: '/admin/checkItem/listByChkData/'+id,
    method: 'get'
  })
}

export function checkItemListByIds(obj) {
  return request({
    url: '/admin/checkItem/listByIds',
    method: 'post',
    data: obj
  })
}
